OUT := main
SRCS := $(wildcard *.c) 
OBJS := $(patsubst %.c,%.o,$(SRCS)) 
COM_OP := -Wall -g 
CC := gcc        

$(OUT):$(OBJS)
	$(CC) $^ -o $@
%.o : %.c compute.h
	$(CC) -c $< -o $@ $(COM_OP)

.PHONY: clean rebuild
clean:
	$(RM) $(OUT) $(OBJS)
rebuild: clean $(OUT)
